{{include file="Manage/header.html"}}
<body class="regi_body">
    <div class="regi_header">
        <a href="javascript:">培育计划申报</a>
    </div>
    <div class="register">
        <div class="bule_bg">
            <div>修改密码</div>
        </div>
        <form method="post" onsubmit="return false">
            <div class="content">
                <table>
                    <!--<tr>-->
                        <!--<td>姓名</td>-->
                        <!--<td><input type="text" name="username"></td>-->
                        <!--<td id="username">请输入真实姓名</td>-->
                    <!--</tr>-->
                    <tr>
                        <td>原始密码</td>
                        <td><input type="password" name="old_password"></td>
                        <td id="old_password">请输入该账号的原始密码</td>
                    </tr>
                    <tr>
                        <td>新密码</td>
                        <td>
                            <input type="password" name="password">
                        </td>
                        <td id="password">密码由6-20位的英文字母、数字和特殊符号组成</td>
                    </tr>
                    <tr>
                        <td>确定密码</td>
                        <td>
                            <input type="password" name="password2">
                        </td>
                        <td id="password2">请再次填写一遍密码，以辅助检测密码输入是否正确</td>
                    </tr>
                </table>
                <button onclick="modify();">确定</button>
            </div>
        </form>
    </div>
    <script type="text/javascript">
        function modify(){
            var params = $("form").serialize();
            $.post('{{"index.php?app=Personal&act=modify_pass"|URL}}',params,function(result){
                if(result.statusCode=='200'){
                    ui.success(result.message);
                    setTimeout(function(){
                        var url = "{{$smarty.const.__PROJECT__}}Login/index";
                        document.location.href = url;//登录后跳转页面
                    },1000);
                }else if(result.statusCode=='300') $("#"+result.message.name+"").html(result.message.message).css('color','#E9686B');
            },'json');
        }
    </script>
{{include file="Manage/footer.html"}}